<%@ page import="com.mastercard.labs.Merchant" %>



<div class="fieldcontain ${hasErrors(bean: merchantInstance, field: 'address', 'error')} ">
	<label for="address">
		<g:message code="merchant.address.label" default="Address" />
		
	</label>
	<g:textField name="address" value="${merchantInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: merchantInstance, field: 'categories', 'error')} ">
	<label for="categories">
		<g:message code="merchant.categories.label" default="Categories" />
		
	</label>
	<g:select name="categories" from="${com.mastercard.labs.Category.list()}" multiple="multiple" optionKey="id" size="5" value="${merchantInstance?.categories*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: merchantInstance, field: 'contact', 'error')} ">
	<label for="contact">
		<g:message code="merchant.contact.label" default="Contact" />
		
	</label>
	<g:textField name="contact" value="${merchantInstance?.contact}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: merchantInstance, field: 'country', 'error')} ">
	<label for="country">
		<g:message code="merchant.country.label" default="Country" />
		
	</label>
	<g:textField name="country" value="${merchantInstance?.country}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: merchantInstance, field: 'logo', 'error')} ">
	<label for="logo">
		<g:message code="merchant.logo.label" default="Logo" />
		
	</label>
	<g:textField name="logo" value="${merchantInstance?.logo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: merchantInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="merchant.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${merchantInstance?.name}"/>
</div>

